<template>
    <a-form-item
        class="Textarea"
        :label="fromItemOption.label"
        :name="fromItemOption.name"
        :placeholder="`请输入${ fromItemOption.label }!`"
        :rules="[{ required: true, message: `请输入${ fromItemOption.label }!` }]"
    >
        <a-textarea
            v-model:value="formState[fromItemOption.name]"
        />
    </a-form-item>
</template>

<script setup>
import {
  toRefs,
  watch,
} from 'vue';

const props = defineProps({
    fromItemOption: {
        type: Object,
        required: true,
    },
    formState: {
        type: Object,
        required: true,
    }
});

const { formState } = toRefs(props);
</script>

<style lang="less" scoped>
.Textarea{
    
}
</style>